package chineseholiday.domain.holiday;

import java.time.LocalDate;
import java.util.List;

/**
 * @author 陈浩
 * @date 2021/5/17 10:37
 */
public class Holiday {

    /**
     * 是否为节假日
     * 是就为节假日，否就为补班
     */
    private Boolean holiday;

    /**
     * 节假日名称/调休的中文名
     */
    private String name;

    /**
     * 薪资倍数，3表示是3倍工资
     */
    private Integer wage;

    /**
     * true表示放完假后调休，false表示先调休再放假
     */
    private Boolean after;

    /**
     * 表示调休的节假日
     */
    private String target;

    /**
     * 节假日的日期/调休的日期
     */
    private LocalDate date;

    /**
     * 表示当前时间距离目标还有多少天。比如今天是 2018-09-28，距离 2018-10-01 还有3天;2018-10-05，距离 2018-10-01 还有5天
     */
    private Integer rest;

    /**
     * 相同节日的下一个放假日，例如 2021-05-01,五一有五天，nextDay为2021-05-02的holiday对象；
     */
    private List<Holiday> nextDay;

    public Boolean getHoliday() {
        return holiday;
    }

    public void setHoliday(Boolean holiday) {
        this.holiday = holiday;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getWage() {
        return wage;
    }

    public void setWage(Integer wage) {
        this.wage = wage;
    }

    public Boolean getAfter() {
        return after;
    }

    public void setAfter(Boolean after) {
        this.after = after;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public Integer getRest() {
        return rest;
    }

    public void setRest(Integer rest) {
        this.rest = rest;
    }

    public List<Holiday> getNextDay() {
        return nextDay;
    }

    public void setNextDay(List<Holiday> nextDay) {
        this.nextDay = nextDay;
    }
}
